/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package py.sysbi.entidades;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.validation.constraints.NotNull;

/**
 *
 * @author PROYECTO_2
 */
@Embeddable
public class BotiquinDetallePK implements Serializable {
    @Basic(optional = false)
    @NotNull
    @Column(name = "botiquin")
    private int botiquin;
    @Basic(optional = false)
    @Column(name = "id")
    private int id;

    public BotiquinDetallePK() {
    }

    public BotiquinDetallePK(int botiquin, int id) {
        this.botiquin = botiquin;
        this.id = id;
    }

    public int getBotiquin() {
        return botiquin;
    }

    public void setBotiquin(int botiquin) {
        this.botiquin = botiquin;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (int) botiquin;
        hash += (int) id;
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof BotiquinDetallePK)) {
            return false;
        }
        BotiquinDetallePK other = (BotiquinDetallePK) object;
        if (this.botiquin != other.botiquin) {
            return false;
        }
        if (this.id != other.id) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "py.sysbi.entidades.BotiquinDetallePK[ botiquin=" + botiquin + ", id=" + id + " ]";
    }
    
}
